package com.ganlebao.study.springcloudfeignclient.basic.acl;


import com.ganlebao.study.springcloudfeignclient.basic.dto.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "multi-test", url = "http://127.0.0.1:8080", path = "server/test")
public interface LocalRemoteServer {

    @RequestMapping(value = "echo-user", produces = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    String echoUser(@SpringQueryMap User user);

}
